package com.ruoyi.web.controller.drugs;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.drugs.domain.DrugsPureceipt;
import com.ruoyi.drugs.service.IDrugsPureceiptService;
import com.ruoyi.system.domain.SysCheck;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/drugs/pureceipt")
public class DrugsPureceiptController extends BaseController {
    @Autowired
    private IDrugsPureceiptService pureceiptService;

    /**
     * 获取采购入库列表
     */
    @PreAuthorize("@ss.hasPermi('drugs:pureceipt:list')")
    @GetMapping("/list")
    public TableDataInfo list(DrugsPureceipt pureceipt)
    {
        startPage();
        List<DrugsPureceipt> list = pureceiptService.selectPureceiptList(pureceipt);
//        System.out.println(list + "3q234234");
        return getDataTable(list);
    }
}
